﻿using AutoMapper;
using Microsoft.AspNetCore.Http;
using System.Data;
using Tauren.Business.Entity.Global;
using Tauren.Business.Infrastructure.RedisHelpe;

namespace Tauren.Business.Infrastructure.Globals
{
    public interface IConnectionBase
    {
        /// <summary>
        /// 会话信息
        /// </summary>
        GlobalModel Global { get; }
        /// <summary>
        /// http头数据
        /// </summary>
        IHttpContextAccessor HttpContextAccessor { get; }

        /// <summary>
        /// 资源数据库链接
        /// </summary>
        IDbConnection ResConnection { get; }
    }
}
